package com.itheima.d1_method;

/*方法的定义注意事项
1.方法与方法之间属于平级关系.不能嵌套
2.return 值:把数据返回给了调用者.并结束方法
*/
public class Test110 {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "张三";
        s1.age = 20;
        s1.gender = "女";


        System.out.println("学生" +s1.name);
        System.out.println("学生" +s1.age);
        System.out.println("学生" +s1.gender);

        s1.study("99");
        s1.eat("66");


        System.out.println(".........................");

        Student s2 = new Student();
        s2.name = "张四";
        s2.age = 25;
        s2.gender = "女";


        System.out.println("学生" +s2.name);
        System.out.println("学生" +s2.age);
        System.out.println("学生" +s2.gender);

        s2.study("99");
        s2.eat("66");



    }


}
